package top.abilities.consumerdemo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.abilities.providerdemo.entity.User;
import top.abilities.providerdemo.service.UserService;

/**
 * @Author: zhaohaoxin
 * @Date: 2022-03-11-17:21
 */
@RestController
public class TestController {
    @Reference
    UserService userService;
    @GetMapping("/getUser")
    public User getUser(){
        return userService.getliUser();
    }
}
